package com.bcxj.servicedriveruser.remote;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.internalcommon.response.TerminalResponse;
import com.bcxj.internalcommon.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: TerminalClient
 * Package: com.bcxj.servicedriveruser.remote
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/2 15:54
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-map")
public interface ServiceMapClient {

    @PostMapping("/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam String name, @RequestParam String desc);


    @PostMapping("/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}
